﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChiTietHoaDonTraList.aspx.cs"
    Inherits="WebApplication.Admin.ChiTietHoaDonTraList" MasterPageFile="~/Admin/Web.Master" %>

<asp:Content ContentPlaceHolderID="Header" runat="server">
</asp:Content>

<asp:Content ContentPlaceHolderID="maint" runat="server">
<div style="float:right;">
<asp:LinkButton runat="server" ID="lbtnthemmoi" CssClass="btn btn-info" 
               >Thêm mới</asp:LinkButton>
</div><br />
<div style="margin-top:25px">
    <asp:GridView runat="server" ID="GrHoaDonTra" CssClass="table table-striped table-bordered table-hover"
        AutoGenerateColumns="False" onrowdatabound="GrHoaDonTra_RowDataBound" 
        onrowcommand="GrHoaDonTra_RowCommand" 
        onselectedindexchanged="GrHoaDonTra_SelectedIndexChanged">
        <Columns>
            <asp:BoundField DataField="MAHDT" HeaderText="Mã hóa đơn trả" />
            <asp:TemplateField HeaderText="Mã hóa đơn nhập">
             <ItemTemplate>
              <asp:Label runat="server" ID="lbhdn"></asp:Label>
             </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nhà cung cấp">
                <ItemTemplate>
                    <asp:Label ID="lbnhacc" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Mặt hàng">
                <ItemTemplate>
                    <asp:Label ID="lbmathang" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="SOLUONGTRA" HeaderText="Số lượng trả" />
            <asp:BoundField DataField="TONGTIENTRA" HeaderText="Tổng tiền trả" />
            <asp:TemplateField HeaderText="Ngày trả">
            <ItemTemplate>
              <asp:Label runat="server" ID="lbngaytra"></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Chức năng">
            <ItemTemplate>
            
 <asp:LinkButton runat="server" ID="lbtnsua" CommandName="lbtnsua" CommandArgument='<%#Bind("MAHDT") %>'><i class="icon-pencil bigger-130"></i></asp:LinkButton>
 <asp:LinkButton runat="server" ID="lbtnxoa" CommandName="lbtnxoa" CommandArgument='<%#Bind("MAHDT") %>'><i class="icon-trash bigger-130 red"></i></asp:LinkButton>

            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </div>
</asp:Content>
